/*
 * @Author: zhouyaohui
 * @Date: 2025-11-18 13:14:51
 * @LastEditTime: 2025-11-18 13:47:05
 * @FilePath: \miyun-warehouse\src\api\operation.js
 */
import request from "@/utils/request";
export const getData = (params)=>{
  return request.get('/SystemOperationLog/list',{params})
}
export function deletelog(id) {
  // 验证参数类型
  if (!Number.isInteger(id) || id <= 0) {
    return Promise.reject(new Error('plcId必须是正整数'));
  }
  return request({
    url: '/SystemOperationLog/delete',
    method: 'delete',
    params: { id },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
export const clearAll = (data)=>{
  return request.delete('/SystemOperationLog/clearAll',data)
}